/*
 * Copyright (c) Jack魏 2023 - 2023, All Rights Reserved.
 */

package cn.jackwei.yiyi.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户注册对象
 *
 * @author Jack魏
 * @since 2023/11/11 19:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "系统用户注册类")
public class SysUserVO {
    /**
     * 账号
     */
    @Schema(description = "账号")
    @NotEmpty(message = "账号不可为空")
    @Size(min = 5, max = 20, message = "账号必须在5-20个字符之内")
    private String account;

    /**
     * 用户协议
     */
    private String agreement;

    /**
     * 密码
     */
    @Schema(description = "密码")
    @NotEmpty(message = "密码不可为空")
    private String password;

    /**
     * 用户名称（昵称）
     */
    @NotEmpty(message = "昵称不可为空")
    @Schema(description = "用户名称（昵称）")
    private String userName;

    /**
     * 手机号
     */
    @NotNull
    @Schema(description = "手机号")
    @NotEmpty(message = "手机号不可为空")
    private String phone;

    /**
     * 验证码Key
     */
    @Schema(description = "验证码Key")
    @NotEmpty(message = "验证码Key不可为空")
    private String captchaKey;

    /**
     * 验证码
     */
    @Schema(description = "验证码")
    @NotEmpty(message = "验证码不可为空")
    private String captcha;
}
